package org.blog.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "评论点赞表")
@TableName(value = "blog_comment_like")
public class BlogCommentLike {

    @ApiModelProperty(value = "评论点赞表主键")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty(value = "评论id")
    @TableField(value = "comment_id")
    private String commentId;

    @ApiModelProperty(value = "用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "点赞时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "like_time")
    private Date likeTime;

}

